package com.ruoyi.news.service;

import com.ruoyi.news.domain.dto.NewsDto;
import com.ruoyi.news.domain.vo.NewsVo;
import com.ruoyi.news.domain.query.NewsQuery;
import com.ruoyi.news.domain.pojo.News;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lijuntao
 * @since 2025-06-21
 */
public interface INewsService extends IService<News> {

    List<NewsVo> listByPage(NewsQuery query);

    boolean deleteByIds(List<Integer> newIds);

    int insertNews(NewsDto dto);
    //修改新闻
    void updateNews(NewsDto dto);
}
